<template>
  <div id="app">
    <mt-header fixed title="我是张孟杰诶"></mt-header>
		<transition name="tabanim" mode="out-in">
       <router-view/>
		</transition>
    <nav class="mui-bar mui-bar-tab">
			<router-link class="mui-tab-item" to="/">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</router-link>
			<router-link class="mui-tab-item" to="/member">
        <span class="mui-icon mui-icon-contact"></span>
				<span class="mui-tab-label">会员</span>
			</router-link>
			<router-link class="mui-tab-item" to="/shoppingcart">
				<span class="mui-icon fa fa-shopping-cart"></span>
				<span class="mui-tab-label">购物车</span>
			</router-link>
			<router-link class="mui-tab-item" to="/search">
				<span class="mui-icon mui-icon-search"></span>
				<span class="mui-tab-label">搜索</span>
			</router-link>
		</nav>
  </div>
</template>

<script>
export default {
  name: "App"
};
</script>
    
<style>
	#app{
		padding:40px 0px 50px 0;
	}
	.tabanim-enter{
      transform: translateX(100%);
	}
	.tabanim-enter-active{
		transition: all 0.3s;

	}
	.tabanim-enter-to{
		transform: translateX(0%);

	}
	.tabanim-leave{
      transform: translateX(0%);
	}
	.tabanim-leave-active{
		transition: all 0.3s;

	}
	.tabanim-leave-to{
		transform: translateX(-100%);

	}
</style>
